/**
 * Copyright (c) 2009  Collaborative Development Group, C.S. Dept., University of Bari
 *
 * All rights reserved. This program and the accompanying materials are made available under
 * the terms of the Eclipse Public License v1.0  which accompanies this distribution, and is 
 * available at http://www.eclipse.org/legal/epl-v10.html
 */
package it.uniba.di.cdg.jtalk.ui.login;

import it.uniba.di.cdg.penelope.ui.annotation.View;
import it.uniba.di.cdg.penelope.ui.lnf.IUIFeedbackHelper;
import it.uniba.di.cdg.penelope.ui.mvp.ViewEvent;

import com.google.inject.ImplementedBy;

/**
 * Interface defining the public API available to the {@link LoginPresenter}.
 */
@View( "login" )
@ImplementedBy( LoginView.class )
public interface ILoginView extends IUIFeedbackHelper {
	/**
	 * The Eclipse ID for this view.
	 */
	public static final String VIEW_ID = "it.uniba.di.cdg.jtalk.ui.login.LoginView";

	public static class LogInButtonClicked implements ViewEvent {
		private static final long serialVersionUID = 4549310193107844356L;
	}	
	
	/**
	 * @param enable
	 */
	void enableUserInput( boolean enable );

	/**
	 * Enable or disable the login button.
	 * @param enable
	 */
	void enableLoginButton( boolean enable );
}
